package com.imooc.pan.server.common.event.file;

import com.imooc.pan.server.modules.file.entity.RPanUserFile;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 物理删除文件后的发布事件
 * @author hhb
 * @data 2024/6/16 18:38
 */
@EqualsAndHashCode
@ToString
@Getter
@Setter
public class FilePhysicalDeleteEvent extends ApplicationEvent {

    private List<RPanUserFile> allRecords;

    public FilePhysicalDeleteEvent(Object source,List<RPanUserFile> allRecords) {
        super(source);
        this.allRecords = allRecords;
    }
}
